package com.kefu.chat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

@Data
@TableName(value="chat_evaluate")
@ApiModel(description = "在线评价设置")
public class ChatEvaluate implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 渠道
     */
    @TableField(value = "channel_id")
    @ApiModelProperty(name = "channelId", value = "渠道")
    private String channelId;

    /**
     * 创建者
     */
    @TableField(value = "create_user")
    @ApiModelProperty(value = "创建者")
    private String createUser;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 创建人姓名
     */
    @TableField(value = "create_name")
    @ApiModelProperty(value = "创建人姓名")
    private String createName;

    /**
     * 更新者
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新者")
    private String updateUser;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    /**
     * 更新人姓名
     */
    @TableField(value = "update_name")
    @ApiModelProperty(value = "更新人姓名")
    private String updateName;

    /**
     * 人工客服是否解决问题 0=否，1=是
     */
    @TableField(value = "evaluate_admin_solve")
    @ApiModelProperty(name = "evaluateAdminSolve", value = "人工客服是否解决问题 0=否，1=是")
    private Integer evaluateAdminSolve;

    /**
     * 评价标签库，内容逗号分隔
     */
    @TableField(value = "evaluate_admin_tag")
    @ApiModelProperty(name = "evaluateAdminTag", value = "评价标签库，内容逗号分隔")
    private String evaluateAdminTag;

    /**
     * 评价模式 1=五星模式，2=10分模式
     */
    @TableField(value = "default_mode")
    @ApiModelProperty(name = "defaultMode", value = "评价模式 ，1=星级，2=分数")
    private Integer defaultMode;

    /**
     * 星星
     */
    @TableField(exist=false)
    @ApiModelProperty(name = "starList", value = "星星")
    private List<ChatEvaluateRel> starList;

    /**
     * 分数
     */
    @TableField(exist=false)
    @ApiModelProperty(name = "scoreList", value = "分数")
    private List<ChatEvaluateRel> scoreList;
    private static final long serialVersionUID = 1L;
}